import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  plugins: [react()],
  // 优化构建输出
  build: {
    outDir: 'dist',
  },
  resolve: {
    //别名的配置
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  
})
